package com.ulife.order.api.response.cart;

import com.ulife.common.gateway.utils.annotation.Description;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Ulife- on 2016/3/25.
 */
@Description("商品详情")
public class CartItemsDTO implements Serializable {
    @Description("商品 Item ID")
    public long id;
    @Description("商品标题")
    public String title;
    @Description("副标题")
    public String subtitle;
    @Description("图片 URL，第一张为360小图，第二张720大图")
    public List<String> images;//todo List<360,720>两张图片
    @Description("当前库存")
    public int stock;
    @Description("选择的 Item 规格")
    public List<CartSpecsDTO> specs;
    @Description("当前购物车中 item 数量")
    public int num;
    @Description("当前 Item 最小购买数量")
    public int limitDown;
    @Description("当前 Item 单次最大购买数量")
    public int limitUp;

    @Description("特价限购值")
    public int limitUpPromotion;

    @Description("零售价")
    public double retailPrice;
    @Description("当前 Item 总价")
    public double totalPrice;
    @Description("商品标签")
    public List<String> tags;//// TODO: 2016/1/13  "tags":["限时促销"],
    @Description("tips 信息")
    public List<String> tips;//// TODO: 2016/1/13 "tips":["周年庆","第二件半价"],
    @Description("参考 [ promotions 详情 ]")
    public List<CartPromotionsDTO> promotions;
    @Description("当前 Item 是否选中")
    public boolean selected;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public List<CartSpecsDTO> getSpecs() {
        return specs;
    }

    public void setSpecs(List<CartSpecsDTO> specs) {
        this.specs = specs;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getLimitDown() {
        return limitDown;
    }

    public void setLimitDown(int limitDown) {
        this.limitDown = limitDown;
    }

    public int getLimitUp() {
        return limitUp;
    }

    public void setLimitUp(int limitUp) {
        this.limitUp = limitUp;
    }

    public int getLimitUpPromotion() {
        return limitUpPromotion;
    }

    public void setLimitUpPromotion(int limitUpPromotion) {
        this.limitUpPromotion = limitUpPromotion;
    }

    public double getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(double retailPrice) {
        this.retailPrice = retailPrice;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public List<String> getTips() {
        return tips;
    }

    public void setTips(List<String> tips) {
        this.tips = tips;
    }

    public List<CartPromotionsDTO> getPromotions() {
        return promotions;
    }

    public void setPromotions(List<CartPromotionsDTO> promotions) {
        this.promotions = promotions;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
